<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		onPageNotFound: [
			function (res) {
				// 跳转到文章页面：根据path获取文章id
				const id = res.path.split('\/')[res.path.split('\/').length-1].split('.')[0]
				uni.redirectTo({
					url: "pages/article/article?id="+id, // 跳转到文章页面：
				});
			},
		],
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	/*每个页面公共css */
</style>
